#ifndef PM_DLG_EDIT_WORK_REQUEST_H_INCLUDED
#define PM_DLG_EDIT_WORK_REQUEST_H_INCLUDED

#include "dlgeditworkrequestgui.h"
#include "pm/workrequest.h"

/**
 * \class DlgEditWorkRequest
 */
class DlgEditWorkRequest : public DlgEditWorkRequestGui
{
protected:
	pm::WorkRequest m_workRequest;
	
public:
	DlgEditWorkRequest(wxWindow* parent, const wxString& title);

protected:
	virtual bool Submit() = 0;

	virtual void OnSubmit( wxCommandEvent& event );
};

/**
 * \class DlgNewWorkRequest
 */
class DlgNewWorkRequest : public DlgEditWorkRequest
{
public:
	DlgNewWorkRequest(wxWindow* parent);
	
protected:
	virtual bool Submit();
};

/**
 * \class DlgUpdateCost
 */
class DlgUpdateWorkRequest : public DlgEditWorkRequest
{
public:
	DlgUpdateWorkRequest(wxWindow* parent, const pm::WorkRequest& workRequest);
	
protected:
	virtual bool Submit();
};

#endif // PM_DLG_EDIT_WORK_REQUEST_H_INCLUDED
